<?php

class Silk_Tms_Model_Shipping_Order_Item extends Mage_Core_Model_Abstract
{
	protected function _construct(){
       $this->_init("tms/shipping_order_item");
    }

    public function importData($item)
    {
    	$this->setOrderId($item->getOrderId());
		$this->setItemId($item->getId());
		$this->setProductId($item->getProductId());
		$this->setSku($item->getSku());
		$this->setName($item->getName());
		$this->setQty($item->getQtyOrdered());
		$this->setPrice($item->getPrice());
		$this->setRowTotal($item->getRowTotal());
		$this->setWeight($item->getWeight());
		$this->setRowWeight($item->getRowWeight());
		$this->setRefunded(0);
		$this->save();
		return $this;
    }
}